package com.xr;

import com.xr.controller.HelloController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/*** @SpringBootApplication标识这个类是一个SpringBoot的主程序类 */
@SpringBootApplication
public class Springboot0102Application {
    public static void main(String[] args) {
        ApplicationContext context = SpringApplication.run(Springboot0102Application.class, args);
        HelloController bean = context.getBean(HelloController.class);
        System.out.println("bean:" + bean);
    }
}
